<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<table class="table table-striped table-bordered table-hover" id="examine-table">
    <thead>
    <tr>
        <th>报批人</th>
        <th>职位</th>
        <th class="hidden-480">政治面貌</th>
        <th class="hidden-480">级别</th>
        <th class="hidden-480">操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${list}" var="list">
        <tr class="odd gradeX">
            <td>${list.C_USERNAME}</td>
            <td>${list.POST}</td>
            <td>${list.POLITICALSTATUS}</td>
            <td>${list.CLASSES}</td>
            <td>
                <c:if test="${list.STATE=='1'}">
                    <a href="javascript:void(0);" onclick="examineBtn('${list.C_USERID}')" class="btn blue icn-only">审批</a></a>
                </c:if>
                <c:if test="${list.STATE=='2'}">
                    <span style="color: #00B83F">审批通过</span>
                </c:if>
                <c:if test="${list.STATE=='3'}">
                    <span style="color:#ff0c07">驳回</span>
                </c:if>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>

<script>
    //begin 个人收入所得
    $('#examine-table').dataTable({
        "aoColumns": [
            { "bSortable": false },
            { "bSortable": false },
            { "bSortable": false },
            { "bSortable": false },
            { "bSortable": false }
        ],
        "aLengthMenu": [
            [5, 15, 20, 99999],
            [5, 15, 20, "所有"] // change per page values here
        ],
        "iDisplayLength": 5,
        "bFilter" : false,
        "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
        "sPaginationType": "bootstrap",
        "oLanguage": {
            "sLengthMenu": "_MENU_ (记录/页)",
            "sInfo" : "从 _START_ 到  _END_ 条记录 总记录数为 _TOTAL_ 条",
            "oPaginate": {
                "sPrevious": "上一页",
                "sNext": "下一页"
            }
        }
    });
    //end  个人收入所得
</script>